
RPATHS = -Wl,-rpath=./raylib/lib/raylib-5.0_linux_amd64/
INCLUDES = -I./raylib/include/raylib-5.0_linux_amd64 -I./forbidden -I.
LINKS = -L./bin -L./raylib/lib/raylib-5.0_linux_amd64 -l:libraylib.so -lm -ldl -lpthread
WARNS = -Wall -Wextra -pedantic
OPTFLAGS = -g -fsanitize=address
OPTFLAGS = -ggdb
OPTFLAGS = -O3
WARNS = 

# freeLinks.o: freeLinks.c freeLinks.h
#         gcc -O -c freeLinks.c
# convert.o: app_src/convert.h app_src/convert.c
# 	gcc -O ${WARNS} ${OPTFLAGS} -I./forbidden app_src/convert.c

# libconvert.a: convert.o
# 	ar rcs libconvert.a convert.o

csv_parser: app_src/csv_parser.c
	gcc ${WARNS} ${OPTFLAGS} convert.c app_src/csv_parser.c ${RPATHS} ${INCLUDES} ${LINKS} -o ./bin/csv_parser

plotter: app_src/plot.c
	gcc ${WARNS} ${OPTFLAGS} app_src/plot.c ${RPATHS} ${INCLUDES} ${LINKS} -o ./bin/plotter
